#include <iostream>
using namespace std;

template <class T>
double suma( T param, int len )
{
    double res=0;
    for(int i=0;i<len;++i)
	{
		res += param[i];
		if(i<len-1)cout << "(" << param[i] << ")+" ;
		else  cout << "(" << param[i] << ")=" << res << endl ;
	}
    return res;
}

double suma(char**,int);